package com.suirich.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.suirich.bean.HomeAd;
import com.suirich.service.BaseService;
import com.suirich.service.HomeAdService;

@Service
@Transactional
public class HomeAdServiceImpl extends BaseService implements HomeAdService {

	public void create(HomeAd homeAd) {
		this.homeAdDao.create(homeAd);
	}

    public void saveOrUpdate(HomeAd homeAd) {
        this.homeAdDao.saveOrUpdate(homeAd);
    }

    public HomeAd read(Long id) {
        return this.homeAdDao.read(id);
    }

    public List<HomeAd> read(HomeAd homeAd) {
        return this.homeAdDao.read(homeAd);
    }
    
    public void update(HomeAd HomeAd) {
        this.homeAdDao.update(HomeAd);
    }

}
